Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
this is the error message i got:
[] Can't locate /usr/local/etc/httpd/htdocs/ubbthreads/cron/languages/english.pl at w3t.pm line 40.
Compilation failed--compilation aborted at doexpire.pl line 22. [/]

this is turning into a nitemare!

Sponsored Links
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
So fix the path on line 40 of w3t.pm.

Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
and wtf is that??

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It's a file in the /cron/perl folder.

You need to edit the paths inside.

Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
aha, ta!
this is the line it's referring to:
[] require "$config{'path'}/languages/$config{'language'}.pl"; [/]

so what is it exactly i add? and where to? in the {'path'} section?

Last edited by monkeyra; 11/09/2002 8:19 AM.
Sponsored Links
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Just put in the path for the file that it's looking for. I think it would be:

require '/usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/english.pl';

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You also will probably need to edit w3tvars.pm

There are a bunch of settings in there.... like the url this will need, database name, password, table prefix etc...

Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
ok, next hiccup.
I amended the w3t.pm and w3tvrs.pm and then tried to run perl doexpire.pl again.
I got a different error message this time, and I dont know what it means.
[] Barewod found where operator expected at w3t.pm line 40, near /etc/httpd" (Missing operator before httpd?)
syntax error at w3t.pm line 40, near "/etc/httpd"
Compilation failed--compilation aborted at doexpire.pl line 22[/]

This is the line I amended, I think correctly, but possibly not
[] require "$config{usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/english.pl}/languages/$config{'language'}.pl";
[/]

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I think it should be:

require "/usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/$config{'language'}.pl";

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
See my post above. I specified the correct syntax for the "require". Don't bother using the $config stuff in the path here. You're just trying to get the thing to run. If you get that far, then you can worry about cleaning it up.

Sponsored Links
Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
okey dokey, i done that and i've still got the same error message.
just to confirm, this is the line in my w3t.pm file.

[] require '/usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/english.pl';
[/]

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
By "same error", you mean you're still getting "Can't locate /.../english.pl at w3t.pm line 40." ? If so, are you sure that's the correct path to english.pl?

Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
correct and correct dave
i've taken 2 screenshots so you can see exactly whats going on.
[]http://www.fordmondeo.org/monkeyra/telnet1.jpg[/]
[]http://www.fordmondeo.org/monkeyra/telnet2.jpg[/]

BTW, the www is just a shortcut link to the full address.

Last edited by monkeyra; 11/11/2002 3:56 PM.
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Virtual FreeBSD ..... hmmmmm

I used to use a similar server, and I remember the paths being kind of weird, and I had play around a bit to figure out what paths to use from cron.

1) When you're in the directory that contains english.pl, what's the output if you type "pwd"?

2) What happens if you type "virtual perl -v" ?


Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
aha!
I get a different path!
/usr/home/nickjenk/usr/local/etc/httpd/ubbthreads/cron/perl/languages

when i type virtual perl -v it comes up
"This is perl, v5.6.1 built for i386-freebsd yadda yadda yadda....."

Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
i amended the path to the new one, and i got a new error!
[]http://www.fordmondeo.org/monkeyra/telnet3.jpg[/]

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
That means that you don't have the Perl DBI (database interface) module installed. That module is needed for accessing a MySQL database from Perl. (I don't have that module installed either, so I can't use Perl for MySQL stuff.)

Your choices:

1) Install the DBI.pm module from CPAN.org.

2) Install PHP as a static binary.

3) Give up.

Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
lol!!
thanks dave. i'll have a look at installing those 2moro (maybe, lack of enthusiasm!)

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Another thought. I haven't tried this, but you might be able to run the PHP version doexpire.php from your browser. Running it occassionally (e.g., once a week) might be easier than trying to get the cron stuff working. Assuming it works, you might want to password-protect the threads cron directory, so that not everyone can run it.

Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
ok, i gave it a go.
[] Fatal error: Failed opening required 'path/to/ubbthreads/main.inc.php' (include_path='.:') in /usr/local/etc/httpd/htdocs/ubbthreads/cron/php/doexpire.php on line 22
[/]

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
[]path/to/ubbthreads/main.inc.php[/]

Something needs to be edited.
Don't know where it's getting /path/to/ubbthreads.

But wherever that is, that should be a real path.

Page 2 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 531
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)